package tech.horgee.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import tech.horgee.entity.Menu;

/**
 * 菜单信息 Mapper 接口
 *
 * @author haojun
 * @since 2022-06-12
 */
@Mapper
public interface MenuMapper extends BaseMapper<Menu> {
    /**
     * 校验权限是否唯一
     *
     * @param permission 权限
     * @return 权限信息
     */
    Menu checkPermissionUnique(String permission);
}
